import request from "../util/request.ts";
import {UserRole} from "./type/model.ts"

export const putUserRole = async (userRole:UserRole): Promise<any> => await request.put("/user-role", userRole)

export const fetchUserRoleList = async (userId: number) : Promise<any> => await request.get(`/user-role/list/${userId}`)